package com.kx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class MyController {

    @RequestMapping(value = "/user/some.do",method = RequestMethod.GET)
    public ModelAndView doSome() {  //doGet --service请求处理
        ModelAndView mv = new ModelAndView();
        mv.addObject("msg", "欢迎使用");
        mv.addObject("fun", "执行的是doSome方法");
        mv.setViewName("show");
        mv.setViewName("other");
        return mv;
    }
}
